package day0320;

public class Test5 {
    public static void main(String[] args) {

        //从1*2*3*4*5*6*7*8*9*10
        /*int s=1;
        for (int i = 1; i <= 10; i++) {
            s=s*i;
        }
        System.out.println(s);*/


        int s=1;
        int i=1;
        while(10>=i){
            s=s*i;
            i++;
        }
        System.out.println(s);


    }
}








